package com.gisuni.sddc.platformManager.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;
@Table(value="SDDCGISPLATFORM.MESSAGE_INFO")
public class MessageInfo implements Serializable{

	private static final long serialVersionUID = 1L;
	
	@Column(value="ID")
	@Name
	private String id;
	
	@Column(value="TITLE")
	private String title;
	
	@Column(value="CONTENT")
	private String content;
	
	@Column(value="STATUS")
	private String status;
	
	@Column(value="PBTIME")
	private Date pbtime;
	
	@Column(value="UPTIME")
	private Date uptime;
	
	@Column(value="PBUSERID")
	private String pbUserId;
	
	@Column(value="PBUSERNAME")
	private String pbUserName;
	
	private List<Attachment> attachments;
	
	

	public List<Attachment> getAttachments() {
		return attachments;
	}

	public void setAttachments(List<Attachment> attachments) {
		this.attachments = attachments;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getPbtime() {
		return pbtime;
	}

	public void setPbtime(Date pbtime) {
		this.pbtime = pbtime;
	}

	public Date getUptime() {
		return uptime;
	}

	public void setUptime(Date uptime) {
		this.uptime = uptime;
	}

	public String getPbUserId() {
		return pbUserId;
	}

	public MessageInfo(String id, String title, String content, String status, Date pbtime, Date uptime,
			String pbUserId, String pbUserName) {
		super();
		this.id = id;
		this.title = title;
		this.content = content;
		this.status = status;
		this.pbtime = pbtime;
		this.uptime = uptime;
		this.pbUserId = pbUserId;
		this.pbUserName = pbUserName;
	}

	public void setPbUserId(String pbUserId) {
		this.pbUserId = pbUserId;
	}

	public String getPbUserName() {
		return pbUserName;
	}

	public void setPbUserName(String pbUserName) {
		this.pbUserName = pbUserName;
	}

	public MessageInfo(String id, String title, String content, String status, Date pbtime, Date uptime) {
		super();
		this.id = id;
		this.title = title;
		this.content = content;
		this.status = status;
		this.pbtime = pbtime;
		this.uptime = uptime;
	}

	public MessageInfo() {
		super();
	}

	@Override
	public String toString() {
		return "MessageInfo [id=" + id + ", title=" + title + ", content=" + content + ", status=" + status
				+ ", pbtime=" + pbtime + ", uptime=" + uptime + ", pbUserId=" + pbUserId + ", pbUserName=" + pbUserName
				+ "]";
	}
	
	

}
